package com.yang.mall.controller.admin;


import com.yang.mall.dto.BannerDTO;
import com.yang.mall.entity.Banner;
import com.yang.mall.entity.MemberProposal;
import com.yang.mall.entity.OLResponse;
import com.yang.mall.entity.QueryRequest;
import com.yang.mall.service.IBannerService;
import com.yang.mall.service.IMemberProposalService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 * 广告表 前端控制器
 * </p>
 *
 * @author kadorlin
 * @since 2022-10-21
 */
@Api(tags = "【PC】用户建议")
@RestController
@RequestMapping("admin/memberProposal")
public class MemberProposalAdminController {

    @Resource
    private IMemberProposalService memberProposalService;

    @ApiOperation("添加建议")
    @PostMapping("/save")
    public OLResponse bannerService(@RequestBody MemberProposal memberProposal){
        memberProposalService.save(memberProposal);
        return new OLResponse().success();
    }

}
